import javax.swing.SwingConstants;
import javax.swing.UIManager;
-import configuration.ConfigXML;
@SuppressWarnings("deprecation")
public class StartWindow extends JFrame {
private JPanel jContentPane = null;
private JButton boton2 = null;
private JButton boton3 = null;
- private static configuration.ConfigXML c;
private JLabel lblNewLabel;
public static void main(String[] args) {
try {
- c = ConfigXML.getInstance();
-
- System.setProperty("java.security.policy", c.getJavaPolicyPath());
+ System.setProperty("java.security.policy", "java.policy");
System.setSecurityManager(new RMISecurityManager());
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- c = configuration.ConfigXML.getInstance();
-
} catch (com.db4o.ext.DatabaseFileLockedException e) {
a.lblNewLabel
.setText("Database locked: Do not run BusinessLogicServer or BusinessLogicServer!!");